<?php

namespace Tests\Browser\Pages\H5;

use Tests\Browser\Pages\H5\Contracts\H5AbstractPage;

class BrowserLoginPage extends H5AbstractPage
{
    const ADD_SHORTCUT_TIP = '增加快捷方式';

    /**
     * Get the URL for the page.
     *
     * @return string
     */
    public function url()
    {
        return $this->spaRouteUrl('/login');
    }

    /**
     * Get the element shortcuts for the page.
     *
     * @return array
     */
    public function elements()
    {
        return [
            '@login-phone-input' => 'input[name=login__phone]',
            '@login-btn' => 'input[name=login__submit]',
        ] + parent::elements();
    }
}
